package com.yuyou.train.user.api;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import com.yuyou.train.service.api.user.entity.UserRemind;
import com.yuyou.train.service.api.user.service.UserRemindAPI;
import com.yuyou.train.user.service.IUserRemindService;





@RestController
public class UserRemindAPIImpl implements UserRemindAPI{

	@Autowired
	private IUserRemindService userRemindService;
	
	@Override
	public int insert(UserRemind userRemind) {
		return userRemindService.insert(userRemind);
	}

	@Override
	public int update(UserRemind userRemind) {
		return userRemindService.updateByPrimaryKeySelective(userRemind);
	}

	@Override
	public List<UserRemind> selectByReceUserId(String receUserId) {
		List<UserRemind> list=userRemindService.selectByReceUserId(receUserId);	
		return list;
	}


	

	
}
